package com.xh.web.controller;

import com.xh.web.constant.AjaxResult;
import com.xh.web.util.StringUtils;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/db/sys")
public class SystemInfoController extends BaseController {

    private String startFlag="0";

    @GetMapping("/start")
    public AjaxResult selectAllProject(String flag) {
        if(!StringUtils.isNotEmpty(flag)){
            return AjaxResult.success("1");
        }
        if(flag.equals(startFlag)){
            return AjaxResult.success("1");
        }else{
            startFlag=flag;
            return AjaxResult.success("0");
        }

    }




}
